求100-999之间的水仙花数！
for i in range(100,1000):
    ch=str(i)
    x=int(ch[0])
    y=int(ch[1])
    z=int(ch[2])
    if x ** 3+y**3+z**3==i:
        print(i)
三色球问题
print('red\tyellow\tblue')
for red in range(0, 4):
    for yellow in range(0, 4):
        for green in range(2, 7):
            if red + yellow + green == 8:
                # 注意，下边不是字符串拼接，因此不用“+”哦~
                print(red, '\t', yellow, '\t\t', green)
